<div class="main_content">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
			<th width="6%">序号</th>
			<th>报废单号</th>
			<th width="20%">经办人</th>
			<th width="15%">经办日期</th>
			<th width="25%">操作</th>
		</tr>
	</thead>
	<tbody>
	{%foreach from=$arr item=arr_item%}
		<tr class="list_{%$arr_item.index%}">
			<td>
				{% if $scrapped_log_arr[$arr_item.scrapped_id] %}
				<div id="sign_{%$arr_item.scrapped_id%}" class="sign_pm pcursor sign_plus" onclick="showList(this,{%$arr_item.scrapped_id%})"></div>
				{% else %}
				<div class="sign_pm sign_minus"></div>
				{% /if %}
			</td>
			<td>{%$arr_item.scrapped_no%}</td>
			<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
			<td>{%$arr_item.mc_mend_time|date_format:"%Y-%m-%d"%}</td>
			<td>
				<a href='index.php?c=zy_scrapped&m=browse&scrapped_id={%$arr_item.scrapped_id%}'>查看</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_scrapped&m=edit&scrapped_id={%$arr_item.scrapped_id%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_scrapped&m=del&scrapped_id={%$arr_item.scrapped_id%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_scrapped_log&m=add&scrapped_id={%$arr_item.scrapped_id%}'>报废</a>
			</td>
		</tr>
		<tr class="hide_chunk">
			<td colspan="6">
				<div class="arrow_open"></div>
				
				<div class="load_list">
					<table width="96%" name="tab_sub" id="tab_sub" class="tab_sub" border="0" cellpadding="0" cellspacing="1" align="left">
					<thead>
						<tr>
							<th>设备自编号</th>
							<th>设备名称</th>
							<th>规格型号</th>
							<th>操作</th>
						</tr>
					</thead>
					{%if $scrapped_log_arr[$arr_item.scrapped_id]%}
						{%foreach item=list from=$scrapped_log_arr[$arr_item.scrapped_id]%}
						<tr>
							<td>{%$list.mc_no%}</td>
							<td>{%$list.mc_name%}</td>
							<td>{%$list.mc_model%}</td>
							<td>
								<a href='index.php?c=zy_scrapped_log&m=browse&scrapped_log_id={%$list.scrapped_log_id%}'>查看</a>&nbsp;&nbsp;
								<a href='index.php?c=zy_scrapped_log&m=edit&scrapped_log_id={%$list.scrapped_log_id%}'>修改</a>&nbsp;&nbsp;
								<a href='index.php?c=zy_scrapped_log&m=del&scrapped_log_id={%$list.scrapped_log_id%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
							</td>
						</tr>
						{%/foreach%}
					{%/if%}
					<tbody>	
					
					</tbody>					
					</table>
				</div>
			</td>
		</tr>
	{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="6"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
	
	<div class="btn_list">
		<span class="btn_add" onclick="location.href='?c=zy_scrapped&m=add'">添 加</span>
	</div>
</div>
